import request from '@/utils/request'

// 销售统计
// 销售统计订单量
export function orderCountAPI(start, end) {
  return request({
    url: '/api/order-service/report/orderCount',
    method: 'get',
    params: { start, end }
  })
}
// 销售统计总额
export function orderAmountAPI(start, end) {
  return request({
    url: '/api/order-service/report/orderAmount',
    method: 'get',
    params: { start, end }
  })
}

// 工单统计
export function taskInfoAPI(start, end) {
  return request({
    url: `/api/task-service/task/taskReportInfo/${start}/${end}`,
    method: 'get'
  })
}
